package com.handinglian.servicerecord.mapper;

import com.handinglian.servicerecord.dto.MessageTemplateDto;
import com.handinglian.servicerecord.entity.MessageTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageTemplateMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MessageTemplate record);

    int insertOrUpdate(MessageTemplate record);

    int insertOrUpdateSelective(MessageTemplate record);

    int insertSelective(MessageTemplate record);

    MessageTemplate selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MessageTemplate record);

    int updateByPrimaryKey(MessageTemplate record);

    int updateBatch(List<MessageTemplate> list);

    int batchInsert(@Param("list") List<MessageTemplate> list);

    List<MessageTemplateDto> list(@Param("nameOrContent")String nameOrContent, @Param("sortField")String sortField, @Param("sortOrder")String sortOrder);

    Integer count();
}